package com.weitu.threeSimultaneities.projectInfo.service.impl;

import com.weitu.threeSimultaneities.projectInfo.entity.Project;
import com.weitu.threeSimultaneities.projectInfo.mapper.ProjectMapper;
import com.weitu.threeSimultaneities.projectInfo.service.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
/**
 * Created by WT on 2017/4/5.
 */
@Service
public class ProjectServiceImpl implements ProjectService {

    private final ProjectMapper projectMapper;

    @Autowired
    public ProjectServiceImpl(ProjectMapper projectMapper){
        this.projectMapper=projectMapper;
    }

    @Override
    public List<Project> selectByParam(Map paramMap){
        return this.projectMapper.selectByParam(paramMap);
    }

    @Override
    public int selectByParamCount(Map paramMap){
        return this.projectMapper.selectByParamCount(paramMap);
    }
    @Override
    public int addProject(Map map){
        return this.projectMapper.addProject(map);
    }
    @Override
    public int updateById(Map map){
        return this.projectMapper.updateById(map);
    }
    @Override
    public int deleteById(String id){
        return this.projectMapper.deleteById(id);
    }
    @Override
    public Project selectById( String id){
        return this.projectMapper.selectById(id);
    }

}
